package com.example.design_pattern.responsibility_chain;

/**
 * 责任链模式相关的练习
 */
public class Client {

    public static void main(String[] args){
        Client client = new Client();
        client.test1();
    }

    private void test1(){
        Player jiaMu = new JiaMu();
        Player jiaShe = new JiaShe();
        Player jiaZheng = new JiaZheng();
        jiaMu.setmSuccessor(jiaShe);
        jiaShe.setmSuccessor(jiaZheng);
        //jiaZheng.setmSuccessor();
        jiaMu.handle(3);
    }

}
